package org.jeecg.modules.oa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.modules.system.entity.BaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Description: 周报表
 * @Author: jeecg-boot
 * @Date:   2019-09-17
 * @Version: V1.0
 */
@Data
@TableName("oa_report_week")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="oa_report_week对象", description="周报表")
public class OaReportWeek extends BaseEntity {
    
	/**编号*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "编号")
	private java.lang.String id;
	/**周报开始日*/
	@Excel(name = "周报开始日", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "周报开始日")
	private java.util.Date workDateFrom;
	/**周报结束日*/
	@Excel(name = "周报结束日", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "周报结束日")
	private java.util.Date workDateTo;
	/**工作内容*/
	@Excel(name = "工作内容", width = 15)
    @ApiModelProperty(value = "工作内容")
	private java.lang.String workContent;
	/**工作总结*/
	@Excel(name = "工作总结", width = 15)
    @ApiModelProperty(value = "工作总结")
	private java.lang.String workSummary;
	/**下周计划*/
	@Excel(name = "下周计划", width = 15)
    @ApiModelProperty(value = "下周计划")
	private java.lang.String nextPlan;
	/**其它(协调与帮助)*/
	@Excel(name = "其它(协调与帮助)", width = 15)
    @ApiModelProperty(value = "其它(协调与帮助)")
	private java.lang.String workElse;
	/**图片*/
	@Excel(name = "图片", width = 15)
    @ApiModelProperty(value = "图片")
	private java.lang.String imageUrl;
	/**附件*/
	@Excel(name = "附件", width = 15)
    @ApiModelProperty(value = "附件")
	private java.lang.String attachmentUrl;
	/**点击数*/
	@Excel(name = "点击数", width = 15)
    @ApiModelProperty(value = "点击数")
	private java.lang.Integer hits;
	/**创建者*/
	@Excel(name = "创建者", width = 15)
    @ApiModelProperty(value = "创建者")
	private java.lang.String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	/**更新者*/
	@Excel(name = "更新者", width = 15)
    @ApiModelProperty(value = "更新者")
	private java.lang.String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private java.util.Date updateTime;
	/**备注信息*/
	@Excel(name = "备注信息", width = 15)
    @ApiModelProperty(value = "备注信息")
	private java.lang.String remarks;
	/**删除标记*/
	@Excel(name = "删除标记", width = 15)
    @ApiModelProperty(value = "删除标记")
	private java.lang.String delFlag;
	/**tenantId*/
	@Excel(name = "tenantId", width = 15)
    @ApiModelProperty(value = "tenantId")
	private java.lang.Integer tenantId;

	/**创建人部门id*/
	@TableField(exist =false )
	private String departId;
	@TableField(exist =false )
	private String departName;
	/**创建人公司id*/
	@TableField(exist =false )
	private String companyId;
	@TableField(exist =false )
	private String companyName;
	@TableField(exist =false )
	private String beginTime;
	@TableField(exist =false )
	private String endTime;
	/**创建人真实姓名*/
	@TableField(exist =false )
	private String createName;
	/**创建人登录账号*/
	@TableField(exist =false )
	private String username;
	/**创建人岗位*/
	@TableField(exist =false )
	private String positionId;
	@TableField(exist =false )
	private String positionName;
	@TableField(exist =false )
	private String positionCode;
	/**评论数*/
	@TableField(exist =false )
	private int commentCount;
	/**阅读数*/
	@TableField(exist =false )
	private int readNum;

	@TableField(exist =false )
	private Map map;
	@TableField(exist =false )
	private List<OaReportPlan> thisWeekList = Lists.newArrayList();//本周完成事项
	@TableField(exist =false )
	private List<OaReportPlan> nextWeekList = Lists.newArrayList();//下周计划
	@TableField(exist =false )
	private int newWorkType ;/**0:表示老的周报类型 1：新的周报类型**/
	@TableField(exist =false )
	private String treeId ;
	@TableField(exist =false )
	private String currentUserId;
	@TableField(exist =false )
	private Boolean isNewest;//是否最新记录
}
